<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2021/6/23
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>helo</title>
  </head>
  <body>
  <form action="" method="post">
    <input type="text" name="name"/>
    <input type="text" name="age" value=""/>
  </form>
  <script src="jquery.min.js"></script>
  <script>
    var sddata={
      name:"东",
      age:"26",
    }
    for(var i in sddata){
      console.log(i);
      $('form input[name='+i+']').val(sddata[i])
    }
  </script>
  </body>
</html>
